package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.VisitInfoService;
import com.it.park.dao.VisitInfoMapper;
import com.it.park.model.VisitInfo;

@Service("visitService")
public class VisitInfoServiceImpl extends BaseServiceImpl<VisitInfo> implements VisitInfoService {
	
	@Autowired
	private  VisitInfoMapper  visitInfoMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return visitInfoMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(VisitInfo record) {
		return visitInfoMapper.insertSelective(record)==1;
	}
	@Override
	public VisitInfo selectByPrimaryKey(Integer id) {
		return visitInfoMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(VisitInfo record) {
		return visitInfoMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(VisitInfo record) {
		return visitInfoMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(VisitInfo record) {
		return visitInfoMapper.insert(record)==1;
	}
	@Override
	public VisitInfo selectByIPAndDate(Map<String, Object> map) {
		return visitInfoMapper.selectByIPAndDate(map);
	}
	@Override
	public List<VisitInfo> selectPagination(Map<String, Object> map) {
		return visitInfoMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return visitInfoMapper.selectTotal(map);
	}
	@Override
	public List<VisitInfo> selectByArea() {
		return visitInfoMapper.selectByArea();
	}
	

}
